import axios from 'axios';
export function getWeather(location, time) {
  const apiKey = 'f0364085ebae4961996e2519de55989b';
  const apiUrl = `https://devapi.qweather.com/v7/weather/${time}?location=${location}&key=${apiKey}`;
  return axios.get(apiUrl)
}
